STEP 11: Let's change our program to use a loop. We have removed some code from the editor.

Remember, commands that are INSIDE a loop have a purple block next to them, like this: ····
Any command that we want to be part of the loop needs to be indented underneath the loop code.

  • Click on the LOGIC tab and then go to . Drag out Loop with Range.
  • In GRAPHICS, go to and drag out Move Forward . Drop it so that it's INSIDE the for loop.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)